package com.javapatterns.observer.variation;

import java.util.Observable;
import java.util.Observer;

public class MyObserver implements Observer{
	
	public MyObserver(Observable observable){
		observable.addObserver(this);
	}

	@Override
	public void update(Observable o, Object arg) {

		System.out.println(arg);
	}

}
